package site.isscloud.project.mapper;

import org.apache.ibatis.annotations.Param;
import site.isscloud.project.domain.vo.BuildingEventVo;
import site.isscloud.project.domain.PjAlarmEvent;

import java.util.Date;
import java.util.List;

/**
 * 楼栋告警Mapper接口
 */
public interface PjBuildingEventMapper {

    /**
     * 查询楼栋告警汇总列表
     */
    List<BuildingEventVo> selectBuildingEventList(BuildingEventVo buildingEventVo);

    /**
     * 根据位置ID查询对应的告警事件详情
     */
    List<PjAlarmEvent> selectEventDetailsByLocation(@Param("markerStart") Integer markerStart,
                                                    @Param("markerEnd") Integer markerEnd,
                                                    @Param("deviceNo") String deviceNo,
                                                    @Param("chanel") Integer chanel,
                                                    @Param("beginTime") Date beginTime,
                                                    @Param("endTime") Date endTime,
                                                    @Param("eventStatus") Integer eventStatus);

    /**
     * 根据位置ID查询位置信息
     */
    BuildingEventVo selectLocationInfoById(@Param("locationId") Long locationId);
}